package com.base.service;

import com.base.po.voip.TrafficCardApplication;
import com.base.po.voip.TrafficCardApplicationExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TrafficCardApplicationService {
    int countByExample(TrafficCardApplicationExample example);

    int deleteByExample(TrafficCardApplicationExample example);

    int deleteByPrimaryKey(String id);

    int insert(TrafficCardApplication record);

    int insertSelective(TrafficCardApplication record);

    List<TrafficCardApplication> selectByExample(TrafficCardApplicationExample example);

    List<TrafficCardApplication> selectByAll(@Param("page") Page page, @Param("parentId")String parentId, @Param("shopId")String shopId,
                                             @Param("phone")String phone, @Param("timeFrom")String timeFrom, @Param("timeTo")String timeTo);

    TrafficCardApplication selectByPrimaryKey(String id);

    TrafficCardApplication selectByPhone(@Param("parentId")String parentId, @Param("phone")String phone);

    int updateByExampleSelective(@Param("record") TrafficCardApplication record, @Param("example") TrafficCardApplicationExample example);

    int updateByExample(@Param("record") TrafficCardApplication record, @Param("example") TrafficCardApplicationExample example);

    int updateByPrimaryKeySelective(TrafficCardApplication record);

    int updateByPrimaryKey(TrafficCardApplication record);

    int countByAll(@Param("parentId")String parentId, @Param("shopId")String shopId, @Param("phone")String phone,
                   @Param("timeFrom")String timeFrom, @Param("timeTo")String timeTo);
}